<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>goeasy</title>
<meta name="keywords" content="goeasy">
<meta name="description" content="goeasy">
<script type="text/javascript" src="https://cdn-hangzhou.goeasy.io/goeasy.js"></script>
<script type="text/javascript">
var goEasy = new GoEasy({
	appkey: 'BC-c1b8664d5824451081b0fb75b6078156'
});
//GoEasy-OTP可以对appkey进行有效保护，详情请参考：GoEasy-Reference
</script>
</head>
<body>

<script type="text/javascript">

	goEasy.publish({
		channel:'demo_channel',
		message:'Hello world!'
	});
	
	goEasy.subscribe({
		channel:'demo_channel',
		onMessage: function(message){
			alert('收到：'+message.content);
		}
	});

</script>

</body>
</html>